<nz-modal [(nzVisible)]="isVisible"
          [nzWidth]="400" nzTitle="设备脉冲设置"
          (nzOnCancel)="handleCancel()"
          (nzOnOk)="handleOk()"
          [nzOkLoading]="isOkLoading"
          [nzFooter]="null"
          class="device-setting"
>
  <nz-spin [nzSpinning]="isSpinning">

    <div>
      <nz-form-item>
        <nz-form-label nzFor="name">心跳时间</nz-form-label>
        <nz-form-control>
          <nz-select [(ngModel)]="heartbeatTime" >
            <nz-option nzValue="300" nzLabel="5分钟"></nz-option>
            <nz-option nzValue="240" nzLabel="4分钟"></nz-option>
            <nz-option nzValue="180" nzLabel="3分钟"></nz-option>
            <nz-option nzValue="120" nzLabel="2分钟"></nz-option>
            <nz-option nzValue="60" nzLabel="1分钟"></nz-option>
            <nz-option nzValue="30" nzLabel="30秒"></nz-option>
          </nz-select>
        </nz-form-control>
      </nz-form-item>
      <nz-form-item>
        <nz-form-label nzFor="name">投币脉冲间隔、长度</nz-form-label>
        <nz-form-control>
          <nz-input-number [(ngModel)]="gapLength" [nzMin]="1" [nzMax]="1000" [nzStep]="1"></nz-input-number>
          <nz-input-number [(ngModel)]="pulseLength" [nzMin]="1" [nzMax]="1000" [nzStep]="1"></nz-input-number>
        </nz-form-control>
      </nz-form-item>
      <nz-form-item>
        <nz-form-label nzFor="name">彩票模式</nz-form-label>
        <nz-form-control>
          <nz-select [(ngModel)]="ritualModel" >
            <nz-option nzValue="1" nzLabel="暂无"></nz-option>
          </nz-select>
        </nz-form-control>
      </nz-form-item>
      <nz-form-item>
        <nz-form-label nzFor="name">出礼脉冲间隔、长度</nz-form-label>
        <nz-form-control>
          <nz-input-number [(ngModel)]="outgoingGapLength" [nzMin]="1" [nzMax]="1000" [nzStep]="1"></nz-input-number>
          <nz-input-number [(ngModel)]="outgoingPulseLength" [nzMin]="1" [nzMax]="1000" [nzStep]="1"></nz-input-number>
        </nz-form-control>
      </nz-form-item>
    </div>

    <div class="steps-action">
      <button nz-button nzType="primary" (click)="handleOk()">
        <span>确&nbsp;&nbsp;&nbsp;&nbsp;认</span>
      </button>
    </div>

  </nz-spin>
</nz-modal>
